<?php
require("connection.php");
$lat = $_POST["lat"];
$lgt= $_POST["lgt"];
$info=$_POST["info"];

session_start();
$user_id=$_SESSION["user_id"];

$update_query="update map set latitude='$lat',longitude='$lgt',info='$info' WHERE user_id=$user_id";

echo $update_query;

$result = mysql_query($update_query) or die("Query failed");
header ("Location:/admin/component/map.php") ;

?>